package com.cskaoyan.mapper;

import com.cskaoyan.bean.CskaoyanmallSystem;
import com.cskaoyan.bean.CskaoyanmallSystemExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CskaoyanmallSystemMapper {
    long countByExample(CskaoyanmallSystemExample example);

    int deleteByExample(CskaoyanmallSystemExample example);

    /**
     * delete by primary key
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(CskaoyanmallSystem record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(CskaoyanmallSystem record);

    List<CskaoyanmallSystem> selectByExample(CskaoyanmallSystemExample example);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    CskaoyanmallSystem selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CskaoyanmallSystem record, @Param("example") CskaoyanmallSystemExample example);

    int updateByExample(@Param("record") CskaoyanmallSystem record, @Param("example") CskaoyanmallSystemExample example);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(CskaoyanmallSystem record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(CskaoyanmallSystem record);
}